From: Zhigang Wang Date: Tue, 21 Jun 2011 16:48:00 +0000 (+0100) Subject: make xendomains service save/migrate vms under /etc/xen/auto only X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~10131^2~12 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=1f2591ba3532ccc1118bf93e59fd64541c6897c3;p=xen.git make xendomains service save/migrate vms under /etc/xen/auto only Currently, xendomains service will save or migrate all the running domains in the host on stop. Change XENDOMAINS_AUTO_ONLY=true. Then on service stop, it will only save or migrate all VMs under XENDOMAINS_AUTO (/etc/xen/auto), but always shutdown all the running VMs. It's a way to cleanly shutdown all the running VMs on system reboot. If you want to save/migrate a VM, create a link to /etc/xen/auto. Signed-off-by: Zhigang Wang Committed-by: Ian Jackson --- diff --git a/tools/hotplug/Linux/init.d/sysconfig.xendomains b/tools/hotplug/Linux/init.d/sysconfig.xendomains index e93b1a40b9..e590d3fd06 100644 --- a/tools/hotplug/Linux/init.d/sysconfig.xendomains +++ b/tools/hotplug/Linux/init.d/sysconfig.xendomains @@ -103,7 +103,7 @@ XENDOMAINS_RESTORE=true XENDOMAINS_AUTO=/etc/xen/auto ## Type: boolean -## Default: false +## Default: true # # If this variable is set to "true", only the domains started via config # files in XENDOMAINS_AUTO will be treated according to XENDOMAINS_SYSRQ, @@ -111,7 +111,7 @@ XENDOMAINS_AUTO=/etc/xen/auto # all running domains will be. # Note that the name matching is somewhat fuzzy. # -XENDOMAINS_AUTO_ONLY=false +XENDOMAINS_AUTO_ONLY=true ## Type: integer ## Default: 300